use actix_web::web::resource;
use actix_web::web::get;
use actix_web::web::post;
use actix_web::delete;
use actix_web::put;


#[macro_export]
macro_rules! get {
    ($path:expr,$func:expr) => {{
         resource($path).route(get().to($func))
    }};
}
#[macro_export]
macro_rules! post {
    ($path:expr,$func:expr) => {{
        resource($path).route(post().to($func))
    }};
}
#[macro_export]
macro_rules! delete {
    ($path:expr,$func:expr) => {{
       resource($path).route(delete().to($func))
    }};
}
#[macro_export]
macro_rules! put {
    ($path:expr,$func:expr) => {{
       resource($path).route(put().to($func))
    }};
}
